package ru.passivemoney.indicator;

import ru.passivemoney.common.Consts;

import com.dukascopy.api.Instrument;
import com.dukascopy.api.OfferSide;
import com.dukascopy.api.Period;
import com.dukascopy.api.IIndicators.AppliedPrice;

/**
 * Контейнер для общих параметров, используемых при вычислении значений индикаторов.
 * @author artem
 *
 */
public class CommonParameters {
	private Instrument instrument = null;
	private Period period = null;
	private OfferSide offerSide = null;
	private AppliedPrice appliedPrice = null;
	private int shift = Consts.CURRENT_BAR_SHIFT;

	public Instrument getInstrument() {
		return instrument;
	}

	public void setInstrument(Instrument instrument) {
		this.instrument = instrument;
	}

	public Period getPeriod() {
		return period;
	}

	public void setPeriod(Period period) {
		this.period = period;
	}

	public OfferSide getOfferSide() {
		return offerSide;
	}

	public void setOfferSide(OfferSide offerSide) {
		this.offerSide = offerSide;
	}

	public AppliedPrice getAppliedPrice() {
		return appliedPrice;
	}

	public void setAppliedPrice(AppliedPrice appliedPrice) {
		this.appliedPrice = appliedPrice;
	}

	public int getShift() {
		return shift;
	}

	public void setShift(int shift) {
		this.shift = shift;
	}

	@Override
	public String toString() {
		return "CommonParameters [instrument=" + instrument + ", period="
				+ period + ", offerSide=" + offerSide + ", appliedPrice="
				+ appliedPrice + ", shift=" + shift + "]";
	}

	
}
